package cn.hellochaos.generator.mapper;

import cn.hellochaos.generator.entity.Point;
import cn.hellochaos.generator.vo.PointVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

//注意这里的mapper不是MBP的
@Mapper
public interface PointVoMapper {


    PointVoMapper INSTANCE = Mappers.getMapper(PointVoMapper.class);
//    @Mapping(source = "make", target = "manufacturer")
//    @Mapping(source = "numberOfSeats", target = "seatCount")
//    一样名字的字段会自动匹配，只需要匹配不一样字段的名字
    PointVO PointToPointVo(Point point);

}
